find first and last digit of number